class Paginas < ActiveRecord::Migration
  def self.up
    create_table :paginas, :force => true do |t|
      t.column :titulo,                   :string, :limit => 100, :null => false
      t.column :titulo_sanitizado,        :string, :limit => 100, :null => false
      t.column :texto,                    :text,   :default => ""
      t.column :categoria_id,             :integer, :null => false
      t.column :orden,                    :integer, :null => false, :default => 0
      t.column :estado,                   :string, :null => false
    end

  end

  def self.down
    drop_table :paginas
  end
end